package com.clqteam.serviceimpl;

import com.clqteam.dao.updataZsDao;
import com.clqteam.daoimpl.updataZsDaoImpl;
import com.clqteam.service.updateZsService;

public class updateZsServiceImpl implements updateZsService{
	updataZsDao upd = new updataZsDaoImpl();

	@Override
	public int updateZsByZspid(int zsId, int zspAmount) {
		return upd.updateZsByZspid(zsId, zspAmount);
	}

	@Override
	public int updateShByZspid(int zspId, int zspAmount) {
		return upd.updateShByZspid(zspId, zspAmount);
	}

	@Override
	public int getOldZsInfoByZspid(int zsId) {
		return upd.getOldZsInfoByZspid(zsId);
	}

	@Override
	public void setdirInfo(String drInfo, String drTime, int eId, String eName) {
		upd.setdirInfo(drInfo, drTime, eId, eName);
		
	}

	@Override
	public int getProductCountByZspid(int zspId) {
		return upd.getProductCountByZspid(zspId);
	}

	@Override
	public int getOidByPid(int zspId) {
		
		return upd.getOidByPid(zspId);
	}

	@Override
	public void updataOrder(int oId, double oMoney) {
		upd.updataOrder(oId, oMoney);
		
	}

	@Override
	public void updataOrderInfo(int oId, int pAmount) {
		upd.updataOrderInfo(oId, pAmount);
		
	}

	@Override
	public double getPcostfromZs(int zsId) {
		
		return upd.getPcostfromZs(zsId);
	}

}
